package com.wy.dao;

import com.wy.bean.ParkBean;
import com.wy.model.sys.ParkEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ParkMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ParkEntity record);

    int insertSelective(ParkEntity record);

    ParkEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ParkEntity record);

    int updateByPrimaryKey(ParkEntity record);

    List<ParkBean> parkList(@Param("pageSize") int pageSize,
                               @Param("start") int start,
                               @Param("type") String type,
                               @Param("status") String status,
                               @Param("residenceId") String residenceId,
                               @Param("parkName") String parkname);

   int  parkSize(@Param("pageSize") int pageSize,
                            @Param("start") int start,
                            @Param("type") String type,
                            @Param("status") String status,
                            @Param("residenceId") String residenceId,
                            @Param("parkName") String parkname);

    int deleteByPrimaryKeys(@Param("id") List<String> groupId);

    List<ParkBean> getParkByResidenceId(@Param("residenceId")String residenceId);
}